<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>hello</title>
</head>
<body>
  <h1>
    <span th:text="${msg}"></span> <br>
    <span th:text="${user.name}"></span>, <span th:text="${user.age}"></span>, 太帅了！ <br>

    <span th:text="${msg.toUpperCase().substring(5)}"></span>

    <ul>
      <li th:each="user : ${list}">
        <span th:text="${user.name}"></span>，
        <span th:if="${user.age} < 30"> 小鲜肉</span>
        <span th:if="${user.age} >= 30"> 老腊肉</span>
      </li>
    </ul>
  </h1>
</body>
</html>